﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Project.DTO;

namespace Project.BUS
{
    public class userBUS
    {
        public static userDTO getUserByUserName(string username) {
            return DAO.userDAO.getUserByUserName(username);
        }

        public static Boolean insertNewUser(userDTO usn) {
            return DAO.userDAO.insertNewUser(usn);
        }

         //get a user
        public static userDTO getAUser(int iduser)
        {
            return DAO.userDAO.getAUser(iduser);
        }

        public static Boolean userLogin(string username, string password) {
            return DAO.userDAO.userLogin(username, password);
        }

        //get all user
        public static userDTO[] getAllUser() {
            return DAO.userDAO.getAllUser();
        }
    }
}